package com.qingcloud.adminbackend.entity.equipment;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * <p>
 * 设备表基本信息表
 * </p>
 *
 * @author LIYUHONG
 * @since 2019-1-10
 */
@Data
public class SysEquipmentDTO {

    @ApiModelProperty(value = "设备编号")
    private String equipmentId;

    @ApiModelProperty(value = "设备类型(6010:6传感器、1010:单传感器、6020:tvoc, 99爬虫源、98考核站、101:扬尘站、、100:其他)")
    private String stechType;

    @ApiModelProperty(value = "0微站 1便携式 2小型站 3移动站 4考核站 5爬虫站 6扬尘站 7室内监测 8室外监测")
    private String equipmentType;

    @ApiModelProperty(value = "监测点名称")
    private String stationName;

    @ApiModelProperty(value = "监测点编号")
    private String stationId;

    @ApiModelProperty(value = "空间名称")
    private String capation;

    @ApiModelProperty(value = "空间地址")
    private String address;

    @ApiModelProperty(value = "监测点Id,设备Id")
    private String id;

    @ApiModelProperty(value = "监测点Id,设备Id")
    private String moId;

    @ApiModelProperty(value = "业务类型")
    private Integer workType;

    public String getId() {
        String val = "";
        if (!StringUtils.isEmpty(stationId)) {
            val += stationId;
        }
        val += ",";
        if (!StringUtils.isEmpty(equipmentId)) {
            val += equipmentId;
        }
        return val;
    }
}
